home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / Shout3d_runtime / codebase / models / extrusionTest.wrl < prev    next >
Text File  |  2000-06-17  |  4KB  |  184 lines

  1. #VRML V2.0 utf8
  2.  
  3. Transform {
  4.     children Shape {
  5.         appearance Appearance {
  6.             texture  ImageTexture { url "images/shared/wooden_stage_bg.jpg" }
  7.             material Material {}
  8.         }
  9.         geometry Extrusion {}
  10.     }
  11. }
  12. Transform {
  13.     children Shape {
  14.         appearance Appearance {
  15.             texture  ImageTexture { url "images/shared/wooden_stage_bg.jpg" }
  16.             material Material {}
  17.         }
  18.         geometry Extrusion {
  19.             spine [ 0 -3 0, -3 -1 0, -3 1 -3, -3 3 -3 ]
  20.             crossSection [ -1 1, 1 1, 2 0, 1 -1, -1 -1, -2 0, -1 1 ]
  21.             scale [ 1 1 , .75 .75, .5 .5, .1 .1 ]
  22.         }
  23.     }
  24. }
  25. Transform {
  26.     translation 4 0 0 
  27.     children Shape {
  28.         appearance Appearance {
  29.             material Material {}
  30.         }
  31.         geometry Extrusion {
  32.             spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0 ]
  33.         }
  34.     }
  35. }
  36. Transform {
  37.     translation 4 -8 0 
  38.     children Shape {
  39.         appearance Appearance {
  40.             material Material {}
  41.         }
  42.         geometry Extrusion {
  43.             spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0, 0 0 0  ]
  44.         }
  45.     }
  46. }
  47. Transform {
  48.     translation 12 0 0 
  49.     children Shape {
  50.         appearance Appearance {
  51.             material Material {}
  52.         }
  53.         geometry Extrusion {
  54.             spine [ 0 0 0, 0 4 0, 0 4 -4, 0 0 -4 ]
  55.         }
  56.     }
  57. }
  58. Transform {
  59.     translation 12 -8 0 
  60.     children Shape {
  61.         appearance Appearance {
  62.             material Material {}
  63.         }
  64.         geometry Extrusion {
  65.             spine [ 0 0 0, 0 4 0, 0 4 4, 0 0 4, 0 0 0  ]
  66.         }
  67.     }
  68. }
  69. Transform {
  70.     translation 16 0 0 
  71.     children Shape {
  72.         appearance Appearance {
  73.             material Material {}
  74.         }
  75.         geometry Extrusion {
  76.             spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
  77.         }
  78.     }
  79. }
  80. Transform {
  81.     translation 16 -8 0 
  82.     children Shape {
  83.         appearance Appearance {
  84.             material Material {}
  85.         }
  86.         geometry Extrusion {
  87.             spine [ 0 0 0, 0 0 4, 4 0 4, 4 0 0, 0 0 0  ]
  88.         }
  89.     }
  90. }
  91.  
  92. Transform {
  93.     translation 4 0 -12 
  94.     children Shape {
  95.         appearance Appearance {
  96.             material Material {}
  97.         }
  98.         geometry DEF ANIM_SPINE_EXTRUSION Extrusion {
  99.             spine [ 0 0 0, 0 4 0, 4 4 0, 4 0 0 ]
  100.         }
  101.     }
  102. }
  103. Transform {
  104.     translation 12 0 -12
  105.     children Shape {
  106.         appearance Appearance {
  107.             material Material {}
  108.         }
  109.         geometry DEF ANIM_SCALE_EXTRUSION Extrusion {
  110.             spine [ 0 0 0, 0 4 0, 0 4 -4, 0 0 -4 ]
  111.         }
  112.     }
  113. }
  114. Transform {
  115.     translation 16 0 -12
  116.     children Shape {
  117.         appearance Appearance {
  118.             material Material {}
  119.         }
  120.         geometry DEF CROSS_SECTION_ANIM_EXTRUSION Extrusion {
  121.             spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
  122.         }
  123.     }
  124. }
  125. Transform {
  126.     translation 16 -12 -12
  127.     children Shape {
  128.         appearance Appearance {
  129.             material Material {}
  130.         }
  131.         geometry DEF TWIST_ANIM_EXTRUSION Extrusion {
  132.             spine [ 0 0 0, 0 0 -4, 4 0 -4, 4 0 0 ]
  133.         }
  134.     }
  135. }
  136. DEF TIMER TimeSensor {
  137.     loop TRUE
  138.     cycleInterval 8
  139. }
  140. DEF SPINE_INTERP CoordinateInterpolator {
  141.     key [ 0 .33 .66 1]
  142.     keyValue [   0 0 0, 0 4 0, 4 4  0, 4  0 0,
  143.                 -1 0 0, 0 6 0, 4 4 -1, 4  3 0,
  144.                  2 0 0, 0 3 0, 4 4  1, 4 -1 0,
  145.                  0 0 0, 0 4 0, 4 4  0, 4  0 0,
  146.                 ]
  147. }
  148. DEF SCALE_INTERP CoordinateInterpolator {
  149.     key [ 0 .33 .66 1]
  150.     keyValue [  1 1, 1 1, 1 1, 1 1,
  151.                 .5 .5, 2 1, 3 3, .2 .2,
  152.                 .2 .2, 1 2, 3 5, .5 .5,
  153.                 1 1, 1 1, 1 1, 1 1,
  154.                 ]
  155. }
  156. DEF CROSS_INTERP CoordinateInterpolator {
  157.     key [ 0 .33 .66 1]
  158.     keyValue [  -1 1, 1 1, 1 -1, -1 -1, -1 1,
  159.                 -2 1, .1 1, 1 -.1, -1 -1, -2 1,
  160.                 -2 2, .1 1, 1 -.1, -1 -1, -2 2,
  161.                 -1 1, 1 1, 1 -1, -1 -1, -1 1,
  162.                 ]
  163. }
  164. DEF TWIST_INTERP CoordinateInterpolator {
  165.     key [ 0 .33 .66 1]
  166.     keyValue [  0 0 1 0, 0 0 1 0, 0 0 1 0, 0 0 1 0,
  167.                 0 0 1 1.5, 0 0 1 0, 0 0 1 0, 0 0 1 0,
  168.                 0 0 1 1.5, 0 0 1 1.5, 0 0 1 -1.5, 0 0 1 0,
  169.                 0 0 1 0, 0 0 1 0, 0 0 1 0, 0 0 1 0
  170.                 ]
  171. }
  172. Route TIMER.fraction to SPINE_INTERP.fraction
  173. Route SPINE_INTERP.value to ANIM_SPINE_EXTRUSION.spine
  174.  
  175. Route TIMER.fraction to SCALE_INTERP.fraction
  176. Route SCALE_INTERP.value to ANIM_SCALE_EXTRUSION.scale
  177.  
  178. Route TIMER.fraction to CROSS_INTERP.fraction
  179. Route CROSS_INTERP.value to CROSS_SECTION_ANIM_EXTRUSION.crossSection
  180.  
  181. Route TIMER.fraction to TWIST_INTERP.fraction
  182. Route TWIST_INTERP.value to TWIST_ANIM_EXTRUSION.orientation
  183.  
  184.